import cv2

filename = "D:\\\迅雷下载\\1191359753-1-30080.mp4"

cap = cv2.VideoCapture(filename)

while(cap.isOpened()):
    ret, frame = cap.read()

    cv2.namedWindow('frame', 0)
    cv2.resizeWindow("frame", 1920, 1080)

    if ret == True:
        cv2.imshow('frame', frame)
    else:
        break

    key = cv2.waitKey(1)
    if key == 27:
        break

cap.release()
cv2.destroyAllWindows()